-- GENERATED SPELL FOR [Future You] --


function spell0_27899(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(47071,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27899', 2340, 1)
end

function spell1_27899(pUnit, Event) --@Hammer of Justice,n/a--
pUnit:FullCastSpellOnTarget(37369,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27899', 4253, 1)
end

function spell2_27899(pUnit, Event) --@Hemorrhage,n/a--
pUnit:FullCastSpellOnTarget(45897,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27899', 10000, 1)
end

function spell3_27899(pUnit, Event) --@Plague Strike,n/a--
pUnit:FullCastSpellOnTarget(58843,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27899', 640, 1)
end

function spell4_27899(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_27899', 681, 1)
end

function spell5_27899(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(17207,pUnit)
pUnit:RegisterEvent('Sorts_27899', 2000, 1)
end

function spell6_27899(pUnit, Event) --@Wing Clip,n/a--
pUnit:FullCastSpellOnTarget(40652,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27899', 10278, 1)
end

function Sorts_27899(pUnit, Event)
local choix_sorts_27899 = math.random(0, 6)
if choix_sorts_27899 == 0 then
pUnit:RegisterEvent('spell0_27899', 1, 1)
end
if choix_sorts_27899 == 1 then
pUnit:RegisterEvent('spell1_27899', 1, 1)
end
if choix_sorts_27899 == 2 then
pUnit:RegisterEvent('spell2_27899', 1, 1)
end
if choix_sorts_27899 == 3 then
pUnit:RegisterEvent('spell3_27899', 1, 1)
end
if choix_sorts_27899 == 4 then
pUnit:RegisterEvent('spell4_27899', 1, 1)
end
if choix_sorts_27899 == 5 then
pUnit:RegisterEvent('spell5_27899', 1, 1)
end
if choix_sorts_27899 == 6 then
pUnit:RegisterEvent('spell6_27899', 1, 1)
end
end

function mob27899_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27899', math.random(1500, 3000), 1)
end

function mob27899_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27899_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27899_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27899, 1, 'mob27899_Action')
RegisterUnitEvent(27899, 2, 'mob27899_Leave')
RegisterUnitEvent(27899, 3, 'mob27899_Kill')
RegisterUnitEvent(27899, 4, 'mob27899_Die')
